<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});

Route::group(['namespace'=>'admin'],function(){
    //
    Route::get('/','IndexController@index');
    Route::get('welcome','IndexController@welcome');

    //
    Route::resource('article','ArticleController');

    //
    Route::get('subject_index1','SubjectController@index1');
    Route::resource('subject','SubjectController');
    Route::post('subject_extand/ajax_list','SubjectController@ajax_list');

//    Route::get('picture_many','PictureController@picture_many');
    Route::post('picture_many','PictureController@picture_many');
    Route::post('upload','PictureController@upload');
    Route::post('picture-picture','PictureController@upload_picture_picture');
    Route::resource('picture','PictureController');

    Route::get('test','TestController@test');


    Route::get('mail',"MailController@SendMail");

});
